import http from '@/utils/request'

export const list = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/list', data)
}
export const add = (data) => {
  return http.post('/api/erp/purchase/material/erpMaterial/add', data)
}
export const edit = (data) => {
  return http.put('/api/erp/purchase/material/erpMaterial/edit', data)
}
export const queryById = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/queryById', data)
}
export const submit = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/submit', data)
}
export const deleteData = (data) => {
  return http.delete('/api/erp/purchase/material/erpMaterial/delete', data)
}


//反审
export const counterTrial = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/counterTrial', data)
}
//审核
export const audit = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/audit', data)
}
//驳回
export const overrule = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterial/overrule', data)
}
//物料大类
export const queryProvisionBroadList = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryAllParent', data)
}
//物料小类
export const queryProvisionSmallList = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryChildrenByParentId', data)
}


